package com.example.hand.springboot_demo.config;

import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//@RestController
//@Component
//@ConfigurationProperties("test")
public class TestConfig {


    private String msg="hello";

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @RequestMapping("/msg")
    public String index(){
        return msg;
    }
}
